package allinpay.yun.demo.order;

import allinpay.yun.demo.DemoUtils;
import allinpay.yun.demo.IDemoHandler;
import org.json.JSONObject;

public class DepositApplyHandler implements IDemoHandler {
    @Override
    public JSONObject getRequestParams() throws Exception {
        String bizOrderNo = System.currentTimeMillis() + "cz";

        JSONObject quickPayH5 = new JSONObject();
        quickPayH5.put("bankCardNo", DemoUtils.rsaEncrypt("6228481234567890123"));
        quickPayH5.put("amount", 10000L);

        JSONObject payMethod = new JSONObject();
        payMethod.put("QUICKPAY_PC", quickPayH5);

        JSONObject param = new JSONObject();
        param.put("bizOrderNo", bizOrderNo);
        param.put("bizUserId", "leegean");
        param.put("accountSetNo", "12985739202038");
        param.put("amount", 10000L);
        param.put("fee", 0);
        param.put("validateType", 0);
        param.put("frontUrl", "http://122.227.225.142:23661/gateway/getPayFront.jsp");
        param.put("backUrl", "http://122.227.225.142:23661/test/recievePayBack.jsp");
//        param.put("ordErexpireDatetime", "");
        param.put("payMethod", payMethod);
        param.put("goodsName", "飞机");
        param.put("industryCode", "1010");
        param.put("industryName", "保险行业");
        param.put("source", 2);
        param.put("summary", "testtest_summar");
//        param.put("extendInfo", "");

        return param;
    }
}
